package router

import (
	"gitee.com/yms-zero/go-library/igin"
	"go-api/app/controller"
	"go-api/app/global"
)

type Controller struct {
	AiController controller.Ai
}

func Router(g *global.Global) igin.OptionHandle {
	cs := &Controller{
		AiController: controller.NewAiController(g),
	}

	return func(h *igin.Http) {
		publicRouter(g, h.Engine, cs)
	}
}
